# import requests        #导入requests包
# from bs4 import BeautifulSoup as bf
# url = 'http://www.nhc.gov.cn/xcs/yqfkdt/202103/4472a10314ef42149076eacf1cffbd58.shtml'
# strhtml = requests.get(url)
# strhtml.encoding='utf-8'       #Get方式获取网页数据
# print(strhtml.text)
# obj = bf(strhtml.read(),'html.parser')
# # 从标签head、title里提取标题
# title = obj.head.title
# # 打印标题
# print(title)

